package com.vvlive.caibao.smartcity.view;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by zhj on 2015/7/4.
 */
public class TripleSlideSwitcherView extends SlideSwitcherView {

    public TripleSlideSwitcherView(Context context){
        this(context, null);
    }

    public TripleSlideSwitcherView(Context context, AttributeSet attrs) {
        super(context, attrs);
        super.addLabel("Third");
        super.setSliderColor(Color.parseColor("#FE6560"));
    }

    public void setThirdLabel(String text){
        ((TextView)super.labelsContainer.getChildAt(2)).setText(text);
    }
}
